package com.xueyu.domain.goods;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 物品订单表
 * @TableName orders
 */
@TableName(value ="orders")
@Data
public class Orders implements Serializable {
    /**
     * 订单号
     */

    @TableField(value = "orderDetailId")
    private Integer orderdetailid;

    /**
     * 订单号
     */
    @TableField(value = "orderNo")
    private String orderno;

    /**
     * 类别（1-物品采购,2.物品领用）
     */
    @TableField(value = "orderType")
    private Integer ordertype;

    /**
     * 采购日期
     */
    @TableField(value = "orderDate")
    private String orderdate;

    /**
     * 供应商ID（管理supplier表主键）
     */
    @TableField(value = "supplierId")
    private Integer supplierid;

    /**
     * 仓库ID（管理storage表主键）
     */
    @TableField(value = "storageId")
    private Integer storageid;

    /**
     * 采购人
     */
    @TableField(value = "chairman")
    private String chairman;

    /**
     * 联系电话
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 物品id
     */
    @TableField(value = "prodId")
    private Integer prodid;

    /**
     * 单位
     */
    @TableField(value = "unitName")
    private String unitname;

    /**
     * 价格
     */
    @TableField(value = "price")
    private Double price;

    /**
     * 状态
     */
    @TableField(value = "sytle")
    private String sytle;

    @TableField(value = "time")
    private String time;
    /**
     * 小记
     */
    @TableField(value = "totalPrice")
    private Double totalprice;

    @TableField(value = "prodCount")
    private int prodcount;

    @TableField(exist = false)
    private Product product; // 添加Drug对象引用s
    //数量
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
